import { defineStore } from "pinia";
export const useInfoStore = defineStore("info", {
  state: () => {
    return {
      //  头部导航条数据
      navData: [],
      chart1Data: [],
      chart2Data: [],
      chart3Data: [],
      chart4Data: [],
    }
  },
  actions: {
    setNavData(val) {
      this.navData = val
    },
    setChart1Data(val) {
      this.chart1Data = val
    },
    setChart2Data(val) {
      this.chart2Data = val
    },
    setChart3Data(val) {
      this.chart3Data = val
    },
    setChart4Data(val) {
      this.chart4Data = val
    }
  },
  persist: true
})